﻿using AutoMapper;
using QuanLyGiaoVuDAL.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QuanLyGiaoVuUI.Models.CaiDat
{
    public class NamHocViewModel
    {
        public Guid MaNamHoc { get; set; }
        public int Nam1 { get; set; }
        public int Nam2 { get; set; }

        public NamHocDTO ToNamHocDTO()
        {
            Mapper.CreateMap(typeof(NamHocViewModel), typeof(NamHocDTO));
            var namHocDTO = new NamHocDTO();
            Mapper.Map(this, namHocDTO);
            return namHocDTO;
        }
    }
}